#ifndef __APP_MODBUS_TCP
#define __APP_MODBUS_TCP

#include "app_config.h"

typedef enum {
    LAN_NO_ERR,
    LAN_LINK_ERR,
    LAN_CONNECT_ERR,
		LAN_GET_DATA_ERR,
} LAN_ERRORCODE;

typedef struct lan_sta
{
	LAN_ERRORCODE  lan_sta;
	rt_uint8_t     lan_server_connect_ok;
	rt_uint8_t 		 lan_link_ok;
	struct netdev  *netdev_modbus;
}lan_sta;


#define  DC_POWER_LEN 2
#define  DC_STA_LEN 3
typedef struct MODBUS_DATA
{
	rt_uint16_t dc_power[DC_POWER_LEN];
	rt_uint16_t dc_sta[DC_STA_LEN];
}MODBUS_DATA;


#endif


